Skip to content

Conversation

@IanButterworth
Copy link
Member

@IanButterworth IanButterworth commented Nov 20, 2024

Fixes a regression in #56601
Fixes another bug when the Project.toml is bad.
Adds tests.

@KristofferC
Copy link
Member

LGTM. Also I realize I was wrong in my comment that this might be broken on releases. It should be fine since the paths are stored during build time.

@IanButterworth IanButterworth merged commit 858cb62 into JuliaLang:master Nov 22, 2024
5 of 7 checks passed
@IanButterworth IanButterworth deleted the ib/profile_fixes branch November 22, 2024 03:06
Profile.print(ioc, C=true)
str = String(take!(io))
slash = Sys.iswindows() ? "\\" : "/"
@test occursin("@Compiler" * slash, str)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests have been seen failing quite frequently in CI since merging. Is there something wrong with the PR or test design?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somehow the profiler sometimes misses all of the compilation. Perhaps peakflops could be replaced with something like putting a sleep in a generated function eval. Or just test the underlying functions more precisely.

nalimilan added a commit that referenced this pull request Oct 29, 2025
Current code fails when using custom paths. Save directory where Julia source
is stored during build in `SOURCEDIR` instead of assuming it can be computed
from `BINDIR` (new name chosen to avoid confusing with `build_dir` which is different).

Fix/continuation of #56601, #56627.
nalimilan added a commit that referenced this pull request Oct 30, 2025
Current code fails when using custom paths. Save directory where Julia source
is stored during build in `SOURCEDIR` instead of assuming it can be computed
from `BINDIR` (new name chosen to avoid confusing with `build_dir` which is different).
Use `DATAROOTDIR` and `DATAROOT`  instead of hardcoding `usr/share/` and `share/`.

Fix/continuation of #56601, #56627.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants